package util;

import java.util.LinkedList;
import java.util.List;

public class Process {
    //去除数组中重复的内容（字符串）
    public static String[] unique(String[] a) {
        List<String> list = new LinkedList<String>();
        for(int i = 0; i < a.length; i++) {
            if(!list.contains(a[i])) {
                list.add(a[i]);
            }
        }
        return (String[])list.toArray(new String[list.size()]);
    }
}
